package com.googlecode.stemwijzer.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.googlecode.stemwijzer.client.inject.StemwijzerGinjector;

public class Stemwijzer implements EntryPoint {

	private static final StemwijzerGinjector ginjector = GWT
			.create(StemwijzerGinjector.class);

	public void onModuleLoad() {

		RootLayoutPanel.get().add(
				ginjector.getStemwijzerPresenter().getDisplay().asWidget());
		RootPanel.get().add(
				ginjector.getNotificationPresenter().getDisplay().asWidget());

		ginjector.getPlaceManager().fireCurrentPlace();
	}
}
